<p><a href="<?php echo $this->url(
	array(
		'controller' => 'stock',
		'action'     => 'stockin'
	),
	'default',
	true) ?>">入库</a></p>
   
入库单一览: <br />
<table class="infotable">
	<thead>
		<tr>
			<td>仓库名称</td>
			<td>卡号</td>
			<td>入库日期</td>
			<td>操作</td>
		</tr>
	</thead>
	<?php foreach ($this->stockin as $key=>$entry): ?>
		<tr>
		<td><?php echo $this->escape($entry['entrepot_name']) ?></td>
		<td><?php echo $this->escape($entry['position']) ?></td>
		<td><?php echo $this->escape($entry['create_date']) ?></td>
		<td>
			<a href="<?php echo $this->url(
				array(
				'controller' => 'stock',
				'action'     => 'showonestockin',
				'stockinId' => $entry['id'],
				),
				'default',
				true) ?>">详细
			</a>
			&nbsp;|&nbsp;
			<a href="<?php echo $this->url(
				array(
				'controller' => 'stock',
				'action'     => 'edit',
				'stockinId' => $entry['id'],
				),
				'default',
				true) ?>">编辑
			</a>
			&nbsp;|&nbsp;
			<a href="<?php echo $this->url(
				array(
				'controller' => 'stock',
				'action'     => 'delete',
				'stockinId' => $entry['id'],
				),
				'default',
				true) ?>">删除
			</a>
		</td>
		</tr>
	<?php endforeach ?>
</table>

